package com.xz.realdemo.model;

/**
 * @author 张志航     
 * @version V1.0.0
 * @projectName design_mode
 * @title     Connection   
 * @package    com.xz.realdemo.model  
 * @date   2019/11/27 11:39  
 * @explain
 */
public abstract class Connection {

    private String ip = "127.0.0.1"; // 数据库ip地址
    private String port = "3306"; // 数据库端口号

    // 连接数据块的方法
    public abstract void connectDatabase();

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getPort() {
        return port;
    }

    public void setPort(String port) {
        this.port = port;
    }
}
